package com.cxh.service.impl;

import com.cxh.base.Data2ServiceImpl;
import com.cxh.util.DataSource;
import com.cxh.dao.CarDiscountDetailDao;
import com.cxh.entity.CarDiscountDetail;
import com.cxh.service.CarDiscountDetailService;
import com.cxh.util.CommonUtility;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 类说明：
 * @author  ChenXH
 * @date  2018-12-26 15:25:47
 */
@Service("carDiscountDetailService")
@DataSource("dataSource2")
public class CarDiscountDetailServiceImpl extends Data2ServiceImpl<CarDiscountDetail> implements CarDiscountDetailService {
    @Autowired
    private CarDiscountDetailDao dao;


    @Override
    public List<CarDiscountDetail> loadPageList(Map<String, Object> map) {
       return dao.loadPageList(map);
    }

    
    @Override
    public CarDiscountDetail getDataByDiscountId(Integer id) {
    	 return dao.getDataByDiscountId(id.toString());
    }
    
    @Override
    public HashMap<String, String> getDataByMap(HashMap<String, Object> hashMap2) {
    	return dao.getDataByMap(hashMap2);
    }
    
}
